package sk.tonyb.library.codebook;

/** 
 * Enumeration of encodings.
 * 
 * @author Anton Balucha
 * @since 30.09.2011
 * @last_modified 09.10.2011
 */
public enum Encoding {
	
	/** UTF-8 */
	UTF_8 ("UTF-8"), 
	/** UTF-16 */
	UTF_16 ("UTF-16"), 
	/** UTF-16BE */
	UTF_16BE ("UTF-16BE"),
	/** UTF-16LE */
	UTF_16LE ("UTF-16LE"),
	/** UTF-32BE */
	UTF_32BE ("UTF-32BE"),
	/** UTF-32LE */
	UTF_32LE ("UTF-32LE"),
	/** ISO-8859-1 */
	ISO_8859_1 ("ISO-8859-1"),
	/** latin1 */
	LATIN1 ("latin1"),
	/** cp1250 */
	CP1250 ("cp1250");
	
	private String encoding = null;
	
	/** Constructor. */
	private Encoding(String encoding) {
		this.encoding = encoding;
	}
	
	/** Method, which return value of encoding. */
	public synchronized String getValue() {
		return this.encoding;
	}
}
